package com.xx.mapper;

import com.xx.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmployeeMapper {
    //查询
    public List<Employee> getList(@Param("empName") String empName,
                                  @Param("jobTitle") String jobTitle);

    //新增
    public int saveEmployee(Employee employee);

    public Employee getEmployeeInfo(@Param("employeeId") Integer employeeId);

    //修改
    public int updateEmployee(Employee employee);

    //删除
    public int delEmployee(@Param("employeeId") Integer employeeId);
}
